const MyBaseController = require('./MyBaseController');

// const {
// 	Controller
// } = require('egg');

class MatchController extends MyBaseController {

    async random() {
        const size = this.ctx.params.size;
        if(size===0)
        {
            throw new Error('大小不能为0');
        }
        let res = await this.service.match.random(size)
        this.success(res);
    }
}

module.exports = MatchController;